<html>
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        <title>2.1.3. Tags as method calls vs. Method calls</title>
        <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" title="Ref" charset="utf-8"/>
    </head>
    <body class="body">
    .gsp<p class="paragraph"/><div class="code"><pre>&#60;span id=<span class="java&#45;quote">"title"</span> class=<span class="java&#45;quote">"label $&#123;hasErrors(bean:book,field:'title','errors')&#125;"</span>&#62;Title&#60;/span&#62;</pre></div><p class="paragraph"/>
.ftl<p class="paragraph"/><div class="code"><pre>&#60;span id=<span class="java&#45;quote">"title"</span> class=<span class="java&#45;quote">"label $&#123;g.hasErrors(&#123;'bean':book,'field':'title'&#125;,'errors')&#125;"</span>&#62;Title&#60;/span&#62;</pre></div><p class="paragraph"/>
<blockquote class="note">
The plugin will define functions using the same namespace of the corresponding directives.
All functions will receive two parameters, at most: a hash and an evaluated string. 
</blockquote>

    </body>
</html>
